import { _decorator, Component, Node, input, Input } from 'cc';
import { data } from '../data';
import { G } from '../G';
const { ccclass, property } = _decorator;

@ccclass('UIGameOver')
export class UIGameOver extends Component {

    start() {
        // 结算按钮监听
        this.node.getChildByName("start").on(Input.EventType.TOUCH_START, this.reStart, this);
        this.node.getChildByName("ok").on(Input.EventType.TOUCH_START, this.returnHall, this);
    }

    // 重新开始
    reStart() {
        G.enterGetReady()
    }

    // 返回大厅
    returnHall() {
        G.returnHall()
    }
}


